/*
 * @Description: 
 * @Date: 2020-12-21 15:12:59
 * @LastEditors: lother
 * @LastEditTime: 2021-01-06 10:29:06
 * @FilePath: \AccountOpening-H5\src\api\login.js
 */
import request from '@/utils/request'

/**
 * @description: 注册接口
 * @param {*} data 数据
 * @return {*}
 */
export function register(data) {
  return request({
    url: '/user/register',
    method: 'post',
    data,
    msg:true
  })
}
  

/**
 * @description: 登录
 * @param {*} data
 * @return {*}
 */
export function loginPost(data) {
  return request({
    url: '/user/login',
    method: 'post',
    data,
  })
}
  
/**
 * @description: 忘记密码
 * @param {*} data
 * @return {*}
 */
export function resetPass(data) {
  return request({
    url: '/user/resetPass',
    method: 'post',
    data,
    msg:true
  })
}
  
/**
 * @description: 登出
 * @param {*} data
 * @return {*}
 */
export function logout() {
  return request({
    url: '/user/logout',
    method: 'post',
  })
}